import { lazy } from "solid-js";
import { Route, Routes } from "@solidjs/router";

const MainLayout = lazy(() => import("./screens/main"));
const Home = lazy(() => import("./screens/main/Home"));
const ChatRoom = lazy(() => import("./screens/ChatRoom"));

function App() {
  return (
    <Routes>
      <Route path="/" element={<MainLayout />}>
        <Route path="" element={<Home />}></Route>
      </Route>
      <Route path="/:chatCode" element={<ChatRoom />} />
    </Routes>
  );
}

export default App;
